<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>客户级别新增</title>
<link href="../style/main.css" rel="stylesheet" type="text/css" />
<link type="text/css" rel="stylesheet"  href="../style/style.css" />

<script type="text/javascript">
	function addNewLevel()
	{
		var id = editLevelForm.clientlevelId.value;
		var dscpt = editLevelForm.clmemo.value;
		if(id.length <= 0 || dscpt.length <= 0)
		{
			alert("必需信息不能为空");
		}
		else
		{
			editLevelForm.submit();
		}
	}
</script>

<%@ taglib prefix="s" uri="/struts-tags" %>

</head>
<body>
<table width="500" align="left" cellpadding="0" cellspacing="0" class="table">
  <tr>
    <td>
      <table width="100%" cellpadding="0" cellspacing="0" class="table2">
        <tr>
          <td valign="top">
            <div class="search" style="padding:10px">
             <s:form id="editLevelForm" name="editLevelForm" action="level!addClientlevel" method="post">
              <table cellpadding="0" cellspacing="0" width="100%" class="table5">
                  <tr>
                    <th height="29" colspan="2" bgcolor="#BBD2F7" class="title">客户级别添加</th>
                  </tr>
                  <tbody>
                     	<s:textfield id="clientlevelId" name="clientlevel.clientlevelId" label="客户级别编号" required="true"></s:textfield>
                     	<s:textfield id="clmemo" name="clientlevel.clmemo" label="客户级别描述" required="true" cssStyle="width:300px"></s:textfield>
	        		<tr>
	        			<td></td>
	          			<td align="center" style="padding-right:10px; border-top:solid 1px #A8CFEB">
	          				<a href="javascript:void(0);" onclick="javascript:addNewLevel()"><span class="clientinfo_but" >保&nbsp;存</span></a>&nbsp;&nbsp;&nbsp;&nbsp;
	          				<span class="clientinfo_but" >取&nbsp;消</span>
	          			</td>
			        </tr>
                  </tbody>
                </table>
			  </s:form>
            </div>

</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</body>
</html>
